package com.mmp.main.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * The persistent class for the user_type database table.
 * 
 */
@Entity
@Table(name = "user_type")
@NamedQuery(name = "UserType.findAll", query = "SELECT u FROM UserType u")
public class UserType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;

	private String name;

	private String description;

	// bi-directional many-to-many association to MenuItem
//	@ManyToMany
//	@JoinTable(name = "user_type_menu_item", joinColumns = { @JoinColumn(name = "user_type_id") }, inverseJoinColumns = { @JoinColumn(name = "menu_item_id") })
//	private List<MenuItem> menuItems;

	public UserType() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

//	public List<MenuItem> getMenuItems() {
//		return this.menuItems;
//	}
//
//	public void setMenuItems(List<MenuItem> menuItems) {
//		this.menuItems = menuItems;
//	}

}